package com.wrx.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 主题帖收藏记录的bean
 * </p>
 *
 * @author wrx
 * @since 2021-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_collect")
@ApiModel(value="Collect对象", description="")
public class Collect{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "收藏id")
    @TableId(value = "collect_id", type = IdType.AUTO)
    private Integer collect_id;

    @ApiModelProperty(value = "用户id")
    private Integer user_id;

    @ApiModelProperty(value = "帖子id")
    private Integer theme_post_id;

    public Collect(){};

    public Collect(Integer collect_id, Integer user_id, Integer theme_post_id) {
        this.collect_id = collect_id;
        this.user_id = user_id;
        this.theme_post_id = theme_post_id;
    }

    public Integer getCollect_id() {
        return collect_id;
    }

    public void setCollect_id(Integer collect_id) {
        this.collect_id = collect_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getTheme_post_id() {
        return theme_post_id;
    }

    public void setTheme_post_id(Integer theme_post_id) {
        this.theme_post_id = theme_post_id;
    }
}
